<% if @payment.capture_events.exists? %>
  <h3><%= plural_resource_name(Spree::PaymentCaptureEvent) %></h3>
  <table class="index" id="capture_events">
    <thead>
      <tr data-hook="payments_header">
        <th><%= "#{Spree.t('date')}/#{Spree.t('time')}" %></th>
        <th><%= Spree.t(:amount) %></th>
      </tr>
    </thead>
    <tbody>
      <% @payment.capture_events.each do |capture_event| %>
        <tr id="<%= dom_id(capture_event) %>" data-hook="capture_events_row" class="<%= cycle('odd', 'even')%>">
          <td><%= pretty_time(capture_event.created_at) %></td>
          <td><%= capture_event.display_amount %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% end %>
